<template>
  <div class="banner">
    <div class="banner_item">
      <!-- 前三项 -->
      <div class="banner_text" v-for="(v, i) in info" :key="i">
        <i style="font-size: 35px" :class="v.icon"></i>
        <span>{{ v.text }}</span>
      </div>
      <!-- 最后一项 -->
      <div class="banner_icon">
        <i
          style="font-size: 35px; color: green"
          class="el-icon-video-camera"
        ></i>
        <div class="banner_p">
          <p>校讯通</p>
          <p>行为管理系统</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      info: [
        {
          icon: "el-icon-platform-eleme",
          text: "首页",
        },
        {
          icon: "el-icon-platform-eleme",
          text: "主数据",
        },
        {
          icon: "el-icon-platform-eleme",
          text: "辖区管理",
        },
      ],
    };
  },
};
</script>

<style scoped>
.banner {
  width: 86.7%;
  height: 60px;
  background-color: #2a3139;
  margin-left: 200px;
  position: relative;
  z-index: 100;
  border: 1px solid #2a3139;
}

.banner_item {
  width: 600px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner_text {
  width: 120px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #797d80;
}

.banner_text span {
  font-size: 14px;
  display: inline-block;
  margin-left: 10px;
}

.banner_icon {
  width: 150px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #797d80;
}

.banner_p {
  margin-left: 10px;
}

.banner_p p:nth-child(1) {
  font-size: 18px;
  color: white;
}

.banner_p p:nth-child(2) {
  font-size: 12px;
  color: white;
}
</style>